<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Post extends Model
{

    /*
     * 获取一篇文章下的所有评论
     */

    public $timestamps = false;

    public function comments()
    {
        return $this->hasMany('App\Comment');
    }
}
